package com.longxi.tianjintianbao.ui.presenter.houseinspection;

import android.content.Intent;

import com.longxi.tianjintianbao.ui.base.BaseActivity;
import com.longxi.tianjintianbao.ui.base.BasePresenter;
import com.longxi.tianjintianbao.ui.view.houseinspection.IAssetsCheckAtView;
import com.longxi.tianjintianbao.ui.view.houseinspection.IAssetsDetailAtView;
import com.longxi.tianjintianbao.utils.LogUtils;
import com.longxi.tianjintianbao.utils.MyUtils;
import com.luck.picture.lib.PictureSelector;
import com.luck.picture.lib.config.PictureConfig;
import com.luck.picture.lib.entity.LocalMedia;

/**
 * Created by cxw on & 2018/9/20
 */
public class AssetsDetailAtPresenter extends BasePresenter<IAssetsDetailAtView> {
    public AssetsDetailAtPresenter(BaseActivity context) {
        super(context);
    }

    public void initBar() {
        mContext.setTitle("资产详情");
        mContext.setTvLeft("返回");
    }

    public void setDetail() {
        StringBuilder buffer = new StringBuilder();

        buffer.append("资产名称:");
        buffer.append("程序员鼓励师");
        buffer.append("\n");

        buffer.append("资产编号:");
        buffer.append("AC123234");
        buffer.append("\n");

        buffer.append("唯一识别码:");
        buffer.append("BAYDXZRIO");
        buffer.append("\n");

        buffer.append("资产所在地:");
        buffer.append("天津");
        buffer.append("\n");

        buffer.append("资产项目:");
        buffer.append("游戏开发");
        buffer.append("\n");

        buffer.append("品牌:");
        buffer.append("张家辉");
        buffer.append("\n");

        buffer.append("型号规格:");
        buffer.append("test");
        buffer.append("\n");

        buffer.append("存放地点:");
        buffer.append("DOS");
        buffer.append("\n");

        buffer.append("资产分类名称:");
        buffer.append("test");
        buffer.append("\n");

        buffer.append("生产厂家:");
        buffer.append("test");
        buffer.append("\n");

        buffer.append("计量单位:");
        buffer.append("test");
        buffer.append("\n");

        buffer.append("主设备编码:");
        buffer.append("test");
        buffer.append("\n");

        buffer.append("系统分类:");
        buffer.append("test");
        buffer.append("\n");

        buffer.append("供应商:");
        buffer.append("test");
        buffer.append("\n");

        getView().getTvContent().setText(buffer);
    }

}
